import java.util.Scanner;

public class Access1 {
    public static void main(String[] args) {
        //华为手机
        double huaweiPrice = 3688.88;//单价
        int huaweiKucun = 0;//手机库存天6
        double huaweiZongjia = 0;//华为手机总价
        System.out.println("品牌型号：华为");
        System.out.println("尺寸：5.5");
        System.out.println("价格："+huaweiPrice);
        System.out.println("配置：8+128G 全面刘海屏");
        System.out.println("请输入华为手机库存");
        /**Scanner类用来获取用户输入信息
         * 定义一个Scanner类型的变量scl
         * 使用new实例化Scanner类(向计算机要内存空间运行Scanner)
         * System.in获取用户输入信息 交由Scanner处理
         */
        Scanner scl = new Scanner(System.in);
        huaweiKucun = scl.nextInt();
        huaweiZongjia = huaweiKucun * huaweiPrice;
        System.out.println("库存华为手机的总金额："+huaweiZongjia);
        //小米手机
        double xiaomiPrice = 2988.88;
        int xiaomikucun = 0;
        double xiaomiZongjia = 0;
        System.out.println("品牌型号：小米");
        System.out.println("尺寸:5.0");
        System.out.println("价格："+xiaomiPrice);
        System.out.println("配置：4+64G 全面屏");
        System.out.println("请输入小米手机库存");
        xiaomikucun = scl.nextInt();
        xiaomiZongjia = xiaomikucun * xiaomiPrice;
        System.out.println("库存小米为手机的总金额"+xiaomiZongjia);
        //库存清单
        System.out.println("------------库存清单------------");
        System.out.println("品牌型号  尺寸     价格       配置        库存数量    总价");
        System.out.println("华为"  +"     "+   5.5  +"   "+  huaweiPrice  +"  "+  "8+128G全面刘海屏"  +"   "+  huaweiKucun  +"     "+  huaweiZongjia);
        System.out.println("小米"  +"     "+   5.0  +"   "+  xiaomiPrice  +"  "+  "4+64G全面屏"  +"       "+  xiaomikucun  +"     "+  xiaomiZongjia);
        System.out.println("---------------------------------");
        int total = huaweiKucun + xiaomikucun;
        double totalMoney = huaweiZongjia + xiaomiZongjia;
        //总库存数量与库存总价
        System.out.println("总库存："+total);
        System.out.println("库存总价："+totalMoney+"￥");
    }
}
